package com.shenmazong.label.controller;

import com.shenmazong.cheat.entity.TbExamCheat;
import com.shenmazong.label.entity.TbExamLabel;
import com.shenmazong.label.entity.TbExamLabelType;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.BatchChooseIdVo;
import com.shenmazong.vo.ListParamVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.shenmazong.label.service.ExamLabelService;


/**
 *controller Qi
 */

@Api(tags = {"教学标签管理"})
@RestController
public class ExamLabelController {

    @Autowired
    private  ExamLabelService  labelService;

    /**
     * @description 考试标签新增
     * @params [tbExamLabel]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:04
     */
    @PostMapping("saveExamLabel")
    public ResultResponse saveExamLabel(@RequestBody TbExamLabel tbExamLabel){
        return labelService.saveExamLabel(tbExamLabel);
    }

    /**
     * @description 考试标签删除
     * @params [chooseIdVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:04
     */
    @PostMapping("deleteExamLabel")
    public ResultResponse deleteExamLabel(@RequestBody BatchChooseIdVo chooseIdVo){
        return labelService.deleteExamLabel(chooseIdVo);
    }

    /**
     * @description 考试标签修改
     * @params [tbExamLabel]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:04
     */
    @PostMapping("updateExamLabel")
    public ResultResponse updateExamLabel(@RequestBody TbExamLabel tbExamLabel){
        return labelService.updateExamLabel(tbExamLabel);
    }

    /**
     * @description 考试标签列表
     * @params [paramVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:04
     */
    @PostMapping("listExamLabel")
    public ResultResponse listExamLabel(@RequestBody ListParamVo paramVo){
        return labelService.listExamLabel(paramVo);
    }

    /**
     * @description 考试标签所有列表
     * @params []
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:05
     */
    @PostMapping("listAllExamLabel")
    public ResultResponse listAllExamLabel(){
        return labelService.listAllExamLabel();
    }

    /**
     * @description 考试标签类型新增
     * @params [tbExamLabelType]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:05
     */
    @PostMapping("saveExamLabelType")
    public ResultResponse saveExamLabelType(@RequestBody TbExamLabelType tbExamLabelType){
        return labelService.saveExamLabelType(tbExamLabelType);
    }

    /**
     * @description  考试标签类型删除
     * @params [chooseIdVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:05
     */
    @PostMapping("deleteExamLabelType")
    public ResultResponse deleteExamLabelType(@RequestBody BatchChooseIdVo chooseIdVo){
        return labelService.deleteExamLabelType(chooseIdVo);
    }

    /**
     * @description 考试标签类型修改
     * @params [tbExamLabelType]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:05
     */
    @PostMapping("updateExamLabelType")
    public ResultResponse updateExamLabelType(@RequestBody TbExamLabelType tbExamLabelType){
        return labelService.updateExamLabelType(tbExamLabelType);
    }

    /**
     * @description 考试标签类型列表
     * @params [paramVo]
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:05
     */
    @PostMapping("listExamLabelType")
    public ResultResponse listExamLabelType(@RequestBody ListParamVo paramVo){
        return labelService.listExamLabelType(paramVo);
    }

    /**
     * @description 考试标签类型所有列表
     * @params []
     * @return com.shenmazong.utils.ResultResponse
     * @author Qi
     * @date 2021/9/22 14:10
     */
    @PostMapping("listAllExamLabelType")
    public ResultResponse listAllExamLabelType(){
        return labelService.listAllExamLabelType();
    }
}




